<template>
  <div class="answers_business">
    <template v-if="answersData.data && answersData.data.length > 0">
      <h3 class="bubble_title">{{ answersData.name }}</h3>
      <ul class="bubble_list_ul">
          <li v-for="businessItem in answersData.data" :key="businessItem.id" @click="handleSearchBusiness(businessItem.queName)">{{ businessItem.queName }}</li>
      </ul>
    </template>
    <template v-else>暂无{{ answersData.name }}数据</template>
  </div>
</template>

<script>
import { setTalkAnswers } from '@/utils/setChatStoreData.js'
export default {
  name: 'AnswersBusiness',
  props: ['answersData'],
  methods: {
      // 业务查询
      handleSearchBusiness(queName){
          setTalkAnswers(this,queName);
      }
  }
}
</script>